import { resolve } from 'path'
import { defaultTheme } from '@vuepress/theme-default'
export default {
    title: '自定义工具库文档',
    dest:resolve(__dirname,"../../distDocs"),
    theme: defaultTheme({
        // 默认主题配置
        logo: '/favicon.ico', //在title前面添加图标logo
        navbar: [
            {
                text: 'Home',
                link: '/',
            },
            {
                //发布在码云上的地址
                text: '码云',
                link: 'https://gitee.com/yushijie1/customize-tool-library',
            },
            {
                //发布在npm的地址
                text: 'Npm',
                link: 'https://www.npmjs.com/package/zp-custom-utils',
            },
        ],
        sidebar: [
            '/',
            {
                text: '指南',
                link: '/page/introduce.md',
                children: [
                    {
                        text: '介绍',
                        link: '/page/introduce.md',
                        children: [],
                    },
                ],
            },
            {
                text: '数组',
                link: '/page/Array/index.md',
            },
            {
                text: '请求',
                link: '/page/Axios/index.md',
            },
            {
                text: '函数',
                link: '/page/Function/index.md',
            },
            {
                text: '对象',
                link: '/page/Object/index.md',
            },
            {
                text: 'Class',
                link: '/page/Class/index.md',
            },
            {
                text: 'Cookie',
                link: '/page/Cookie/index.md',
            },
            {
                text: '系统',
                link: '/page/Device/index.md',
            },
            {
                text: 'DOM',
                link: '/page/DOM/index.md',
            },
            {
                text: '键盘',
                link: '/page/Keycode/index.md',
            },
            {
                text: 'Random',
                link: '/page/Random/index.md',
            },
            {
                text: 'Regexp',
                link: '/page/Regexp/index.md',
            },
            {
                text: 'Url',
                link: '/page/Url/index.md',
            },
            {
                text: 'Time',
                link: '/page/Time/index.md',
            },
        ],
    }),
}
